﻿//* Copyright(C) 2005-2012, all rights reserved.
//*
//* The following code is copyrighted and contains proprietary information
/* and trade secrets of Foxit Software Inc.      
**************************************************************************
*/

/**
Form DocView事件接口类
*/


define(function (require, exports, module) {
    FXREADER.Event.CForm_DocViewEventHandler = function (pFormPlugin) {
        this.m_pFormPlugin = pFormPlugin;
    };
    FXREADER.Event.CForm_DocViewEventHandler.prototype =
    {
    	OnDocumentOpened: function(){
    			
        },
        OnPreDocViewResize: function () {
            if (this.m_pFormPlugin != null)
                this.m_pFormPlugin.OnPreDocViewResize();
        },
        //文档内容视图大小发生变化时触发;
        OnDocViewResize: function () {
            if (this.m_pFormPlugin != null)
                this.m_pFormPlugin.OnDocViewResize();
        },
        OnDocViewScroll: function () {
            if (this.m_pFormPlugin != null)
                this.m_pFormPlugin.OnDocViewScroll();
        },
        OnDocViewZoom: function (scale) {
            if (this.m_pFormPlugin != null)
                this.m_pFormPlugin.OnDocViewZoom(scale);
        },
        OnPageIndexUpdated: function (iPageIndex) {
            if (this.m_pFormPlugin != null)
                this.m_pFormPlugin.OnPageIndexUpdated(iPageIndex);
        }
    };



    return FXREADER.Event.CForm_DocViewEventHandler;
});